import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

public abstract class Sprite {
	private BufferedImage image;
	protected int[] location; //The sprite's location on the Hex grid
	
	
	/**Load in the image for this sprite.
	 * (Should be passed in by constructor)
	 * 
	 */
	public void loadImage(File imageName)
	{
		try {
			image = ImageIO.read(imageName);
		} catch (IOException e) {
			System.out.println("Can't Load Image.");
			e.printStackTrace();
		}
	}
	
	public void setLocation(int[] newLoc)
	{
		location = newLoc;
	}
	
	public int[] getLocation()
	{
		return location;
	}
	

	
	
	public abstract void drawSprite(Graphics g, int x, int y);
	
}
